package com.cos.lession70.proxy;

import com.cos.lession70.proxy.impl.FanDongImpl;

/**
 * @author: COS
 * @time: 2022/9/26 16:10
 * @description:
 * 静态代理
 */
public class ZhongJIeProxy implements FanDong{
    @Override
    public void zufang() {
        //辅助的功能业务
        System.out.println("贴小广告");
        System.out.println("带人看房");
        System.out.println("签合同");
        FanDongImpl f = new FanDongImpl();
        // 调用核心业务
        f.zufang();
    }

    @Override
    public void haha() {

    }
}
